//
//  LoginController.h
//  iSwitchView
//
//  Created by Ronnie on 08-11-5.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "FXDataCenter.h"

@class MainAppController;
@class MainWindowController;

@interface LoginController : NSViewController {
	IBOutlet NSButton*				loginButton;
	IBOutlet NSButton*				cancelButton;
	IBOutlet NSSecureTextField*		passwdTextField;
	IBOutlet NSProgressIndicator*	loginProgress;
	IBOutlet NSTextField*			loginHint;
	IBOutlet NSPopUpButton*			loginStateButton;
	IBOutlet NSTextField*			userName;
	IBOutlet NSSecureTextField*		passWord;
	IBOutlet NSMenu*				statesMenu;
	int								loginState;
	NSMenuItem*						activeItem;
	
	MainWindowController *			mainWindowCtrl;
	MainAppController*				mainAppCtrl;
}

- (IBAction)onStatusChange:(id)sender;
- (IBAction)LoginClick:(id)sender;
- (IBAction)CancelClick:(id)sender;
- (void)setMainWindowController:(MainWindowController*)p;
- (void)setMainAppController:(MainAppController*)p;
- (void)setMyHint:(NSString*)hintMessage;

@end
